home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #2 / Monster Media No. 2 (Monster Media)(1994).ISO / prog_c / bc4lib.zip / GRAF.H < prev    next >
C/C++ Source or Header  |  1994-05-08  |  3KB  |  98 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6. struct palrec
  7.        {
  8.        unsigned char redval,greenval,blueval;
  9.        };
  10.  
  11. extern int graffontsize,vidmode;
  12. extern char m[25][100];     /* array 0-34 of string[100] for menus etc */
  13.  
  14.  
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18.  
  19. void refreshon(void);
  20. void refreshoff(void);
  21. void getgrafsize(void *p, int *x, int *y);
  22. void grafcopy(int x,int y,void *p,void *p2);
  23. void getgrafsize(void *p, int *x, int *y);
  24. void setallrgbpalette2(struct palrec *pal);
  25. /* sets 256 color palette using port addressing. faster than bios ? */
  26. void setrgbpalette2(int regnum,int red,int green,int blue);
  27. /* set 256 color palette register using bios. appears to be
  28.    slightly faster than BC40's setrgbpalette() routine.         */
  29. void setrgbpalette3(int regnum,int red,int green,int blue);
  30. /* sets 256 color palette register using port addressing.
  31.    faster that bios ?                                       */
  32.  
  33. char getdrv(char *s, int fore, int fore2, int bak, int doclick);
  34. void wait4retrace(void);
  35. void fadeout(void);   /* fades a 256 color palette to black */
  36. void fadein(struct palrec *pal);   /* fades in a 256 color palette */
  37. void loadpal(char *s, struct palrec *pal);    /* loads 256 color palette */
  38. void savepal(char *s, struct palrec *pal);    /* saves 256 color palette */
  39. void setallrgbpalette(struct palrec *pal);
  40. /* sets 256 color palette using bios */
  41. int x2vidx(int x);
  42. int y2vidy(int y);
  43. int mousex2x(int x);
  44. int mousey2y(int y);
  45. void grafpie(int x, int y, int startangle, int endangle, int radius,
  46.          int color, int fillstyle);
  47. void *grafload(char *s);   /* loads a bitmap from disk */
  48. void grafsave(char *s,void *p);   /* saves a bitmap to disk */
  49. void getallrgbpalette(struct palrec *pal);  /* gets 256 color palette */
  50. void fillgraf(int x1,int y1,int x2,int y2,int color,int fill);
  51. void clsgraf(int color,int fill);     /* clears screen */
  52. void grafon(void);
  53. void saygraf3d(int x, int y, int fore, int bak, int font, int size,
  54.            int orientation, int hjust, int vjust, int xmul, int xdiv,
  55.            int ymul, int ydiv,const char *s);
  56. void saygraf(int x, int y, int fore, int font, int size, int orientation,
  57.          int hjust, int vjust, int xmul, int xdiv, int ymul, int ydiv,
  58.          char *s);
  59. void *grafget(int x1,int y1,int x2,int y2);
  60. void grafline(int x1,int y1,int x2,int y2,int color,int style,int thickness);
  61. void grafpix(int x, int y, int color);
  62. void panel(int x1, int y1, int x2, int y2, int color, int pressed);
  63. void graftri(int x1,int y1,int x2,int y2,int x3,int y3,int color,int fill);
  64. void grafput(int x, int y, int put, void *p);
  65. void grafmsg(int x, int y, int i, int fore,int fore2, int bak, int doclick,
  66.          int dopause, int doprint);
  67. void grafrect(int x1,int y1,int x2,int y2,int color,int style,int thickness);
  68. void clsstars(void);
  69. void select(int *x, int *y,int doclick);
  70. int popupmenu(int x,int y,int i,int fore,int fore2,int bak,int doclick);
  71. void getstr(char *promptstr,char *returnstr,int fore,int fore2,int bak);
  72. int getnum(char *promptstr,int fore,int fore2,int bak,int doclick);
  73. void setborder(int i);
  74. int getcol(char *s,int fore,int fore2,int bak,int doclick);
  75. int getfill(char *s,int fore,int fore2,int bak,int color,int doclick);
  76. void getarea(int x1,int y1,int *x2,int *y2);
  77. int getpix(int x,int y);
  78. void fillstars(int x1,int y1,int x2,int y2);
  79. void grafcircle(int x,int y,int rad,int color,int style,int thickness);
  80.  
  81.  
  82. #ifdef __cplusplus
  83. }
  84. #endif
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.